<?php
namespace App\Model;

use EasySwoole\Mysqli\Mysqli;

class BaseModel {

    //映射出db
    protected $db;

    public function __construct(Mysqli $dbObject)
    {
        $this->db = $dbObject;
    }

    public function getDb(): \EasySwoole\Mysqli\Mysqli
    {
        return $this->db;
    }


}